import request from '@/utils/request.js'

// 常量
const api_name = '/product/h5/product'

export default {
    getProductPage(params) {
        return request({
            url: `${api_name}/getProductPage`,
            method: 'get',
            params: params
        })
    },
    getProductDetailsById(id) {
        return request({
            url: `${api_name}/getProductDetailsById/${id}`,
            method: 'get'
        })
    }
}
